import S from '../utils/service'
import W from '../utils/service_wallet'

// 登录
export const login = obj => S.post("user/login", obj);
//发送验证码
export const sendMaseeage = obj => S.post("user/sendVerificationCode", obj);
//注册
export const appUserRegisterForUser = obj => S.post("user/appUserRegisterForUser", obj);
// 修改密码
export const updateUserPass = obj => S.post("user/resetUserPass", obj);
//账户列表
export const accountList = obj => S.post("user/accountList", obj);
//验证码校验
export const yCode = obj => S.post("user/checkVerificationCode", obj);
//用户信息校验
export const checkUsername = obj => S.post("user/checkUsername", obj);
// 消息列表
export const getArticleList = obj => S.post("article/getArticleList", obj);
// 消息/文章详情
export const getArticle = obj => S.post("article/getArticle", obj);
// 文章列表
export const userArticleList = obj => S.post("article/userArticleList", obj);
// 首页商品列表数据
export const getMineGoodsList = obj => S.post("mineGoods/getMineGoodsList", obj);
// 获取商品明细
export const getCompanyGoodsDetail = obj => S.post("companyGoods/getCompanyGoodsDetail", obj);
// 获取用户信息
export const getUserInfo = obj => S.post("user/getUserInfo", obj);
// 上传头像
export const updateUserHead = obj => S.post("user/updateUserHead", obj);
// 身份证认证
export const updateUserCardNo = obj => S.post("user/updateUserCardNo", obj);
// 修改手机号
export const updateUserTel = obj => S.post("user/updateUserTel", obj);
// 获取好友列表
export const getUserForRecom = obj => S.post("user/getUserForRecom", obj);
export const getMineGoodsDetail = obj => S.post("mineGoods/getMineGoodsDetail", obj);
// 订单购买接口
export const placeAnOrder = obj => S.post("appOrder/placeAnOrder", obj);
// 订单支付接口
export const orderAliPay = obj => S.post("appOrder/orderAliPay", obj);
// 订单明细
export const orderDetail = obj => S.post("appOrder/orderDetail", obj);
// 获取订单列表
export const userOrderDetail = obj => S.post("appOrder/userOrderDetail", obj);
// 取消订单接口
export const cancelOrder = obj => S.post("appOrder/cancelOrder", obj);
// 订单（撤单、退款）接口
export const refundOrder = obj => S.post("appOrder/refundOrder", obj);
// 文件上传
export const ossImg = obj => S.post("oss/img", obj);
// 获取挖矿收益列表
export const getUserFilInfo = obj => W.post("xjgw/app/getUserFilInfo", obj);
// 创建钱包地址
export const createWallet = obj => W.post("xjgw/app/createWallet", obj);
// 转账
export const transfer = obj => W.post("xjgw/app/transfer", obj);
// 添加用户钱包
export const addUserWallet = obj => S.post("userWallet/addUserWallet", obj);
// 钱包列表
export const getUserWalletList = obj => S.post("userWallet/getUserWalletList", obj);
// 修改钱包状态
export const updateUserWalletActive = obj => S.post("userWallet/updateUserWalletActive", obj);
// 删除钱包
export const delUserWallet = obj => S.post("userWallet/delUserWallet", obj);
// 钱包收益明细
export const selectUserWalletList = obj => S.post("userWallet/selectUserWalletList", obj);
// 我的矿场
export const walletInfoList = obj => S.post("miner-info/list", obj);
// 提交报单
export const taxationFormOrder = obj => S.post("appOrder/taxationFormOrder", obj);
// 钱包余额查询
export const userWalletBalance = obj => S.post("userWallet/balance", obj);
// 钱包转账
export const addTransferDetails = obj => S.post("transferDetails/addTransferDetails", obj);
// 取消报单
export const taxationFormCancelOrder = obj => S.post("appOrder/taxationFormCancelOrder", obj);
// 提交报单凭证
export const taxationFormPayOrder = obj => S.post("appOrder/taxationFormPayOrder", obj);
// 获取手续费
export const configList = obj => S.post("sysConfig/configList", obj);
// 提币
export const userWalletApply = obj => S.post("walletWithdrawal/userWalletApply", obj);